<?php

include ("include/config.php");

stemplate::assign("main_categories", core_categories());


require($config['basedir']."/classes/category.class.php");
$post = $_REQUEST;
$obj_cat = new Category();

$_action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view';

switch($_action) {

	case 'view':
	default:
  		stemplate::assign("_page_title", "Photo Gallery");
		stemplate::assign("main_categories", core_categories());
		stemplate::assign("photos", $obj_cat->getGalleryImages());
 		
		stemplate::assign("total_records", $pager->items_total);
		stemplate::assign("pagination_start", $pager->low);
		stemplate::assign("pagination",$pager->display_pages());
		
	
		stemplate::display("photo_gallery_listing.tpl");
    break; 

}




?>